package mediaserver.managementserver;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;



public class MediaManagementServerListener implements Runnable{

	
	public void run(){
		
		ExecutorService executor = Executors.newCachedThreadPool();
		
		
		try{ 
		
			ServerSocket server = new ServerSocket( 6001 ); 
		 
			while ( true ){ 
				Socket client = null; 
				client = server.accept();
				executor.execute(new MediaManagementServerRunnable(client));
			}
		} catch(Exception e) {
	    	System.out.println(e);
	    }
	}
	
	public void handleConnection(Socket client){
		
	}
}
